package ProxyPattern;

/**
 * @version: java version 1.8
 * @Author: Zheng
 * @description:
 * @date: 2022-08-15 22:01
 */
public class ProxyPatternDemo {
    public static void main(String[] args) {
        Image image=new ProxyImage("test.jpg");

        // 图像将从磁盘加载
        image.displaye();
        System.out.println("");
        // 图像不需要从磁盘中加载
        image.displaye();
    }
}
